def pr(a):
    if a == "zero":
        return "0"
    elif a == "one":
        return "1"
    elif a == "two":
        return "2"
    elif a == "three":
        return "3"
    elif a == "four":
        return "4"
    elif a == "five":
        return "5"
    elif a == "six":
        return "6"
    elif a == "seven":
        return "7"
    elif a == "eight":
        return "8"
    elif a == "nine":
        return "9"
    else:
        return "Wrong input"

x, y, z = input().split()
if pr(x) == "Wrong input" or pr(y) == "Wrong input" or pr(z) == "Wrong input":
    print("Wrong input")
else:
    print(pr(x) + pr(y) + pr(z))

